tests: Just use OT_TESTS_DEBUG to say "save test data"
authorColin Walters <walters@verbum.org>
Thu, 21 Jun 2012 15:42:45 +0000 (11:42 -0400)
committerColin Walters <walters@verbum.org>
Thu, 21 Jun 2012 15:42:45 +0000 (11:42 -0400)
tests/libtest.sh

index 691e7c34c4184f86fa008acc473894ce8aab1a7f..c09639f487d2a273bc878f4eaa4d6ec89c6c9308 100644 (file)
@@ -37,7 +37,7 @@ if test -n "$OT_TESTS_VALGRIND"; then
 fi
 
 die () {
-    if test -z "$OT_TESTS_SAVE_TEMPS"; then
+    if test -z "$OT_TESTS_DEBUG"; then
         test -f "$test_tmpdir/.test$$" && rm -rf "$test_tmpdir"
     else
         echo "Temporary files saved in $test_tmpdir"